package com.kifas.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "trx_jurnal_umum")
public class TransactionJurnalUmumEntity implements Serializable {

	private static final long serialVersionUID = 3086028596823029527L;

	@Id
	@GeneratedValue
	@Column(name = "id_jurnal")
	private Long idJurnal;

	private String kodeAkun;

	@Temporal(javax.persistence.TemporalType.DATE)
	private Date tanggal;

	private String deskripsi;

	@Column(name = "no_ref")
	private String noRef;

	private BigDecimal debet;

	private BigDecimal kredit;

	private String keterangan;

	private String posting;
	
	@Column(name= "created_by")
	private String createdBy;
	
	@Column(name= "created_date")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdDate;

	public TransactionJurnalUmumEntity() {
	}

	public TransactionJurnalUmumEntity(Long idJurnal, String kodeAkun, Date tanggal,
			String deskripsi, String noRef, BigDecimal debet,
			BigDecimal kredit, String keterangan, String posting, String createdBy, Date createdDate) {
		this.idJurnal = idJurnal;
		this.kodeAkun = kodeAkun;
		this.tanggal = tanggal;
		this.deskripsi = deskripsi;
		this.noRef = noRef;
		this.debet = debet;
		this.kredit = kredit;
		this.keterangan = keterangan;
		this.posting = posting;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getIdJurnal() {
		return idJurnal;
	}

	public void setIdJurnal(Long idJurnal) {
		this.idJurnal = idJurnal;
	}

	public String getKodeAkun() {
		return kodeAkun;
	}

	public void setKodeAkun(String kodeAkun) {
		this.kodeAkun = kodeAkun;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public String getDeskripsi() {
		return deskripsi;
	}

	public void setDeskripsi(String deskripsi) {
		this.deskripsi = deskripsi;
	}

	public String getNoRef() {
		return noRef;
	}

	public void setNoRef(String noRef) {
		this.noRef = noRef;
	}

	public BigDecimal getDebet() {
		return debet;
	}

	public void setDebet(BigDecimal debet) {
		this.debet = debet;
	}

	public BigDecimal getKredit() {
		return kredit;
	}

	public void setKredit(BigDecimal kredit) {
		this.kredit = kredit;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getPosting() {
		return posting;
	}

	public void setPosting(String posting) {
		this.posting = posting;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

}
